﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClassLibrary.DAO;

public partial class Admin_ViewTraGop : System.Web.UI.Page
{
    TblTraGopDAO tragopDAO = new TblTraGopDAO(Global.CONNECTION_STRING);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadTraGop();
        }
    }

    private void LoadTraGop()
    {
        formNoiDungTraGop.DataSource = tragopDAO.GetTraGop();
        formNoiDungTraGop.DataBind();
    }
}